package com.micro.monitoring.basic;

import org.json.JSONObject;

public class BasicMakeJson {
    public static String makeJson(String[] name, Object[] value) {
        JSONObject json = new JSONObject();
        try {
            for (int i = 0; i < name.length; i++) {
                json.put(name[i], value[i]);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
        return String.valueOf(json);
    }
}
